This is probably a really easy fix, but I cannot seem to find the problem. My DXL was running perfectly fine, until I commented it. Now its giving me an error saying badly formed token at line 355, then in the Edit DXL menu it is printing out code preceding this line in the menu and then says it stopped printing errors due to there being too many. I have looked around the line it said the error occurs and also where the code starts to print out on the Edit DXL menu. I'm kind of clueless at this point so any input or ideas would be appreciated. |
Re: DXL won't run after commenting code.. |
Re: DXL won't run after commenting code..
I think there might be multiple reasons for this.
a = 4 // some number -
+5 // this comment will work -
+7 // since the newlines will be ignored.
a = 4 /* some number */ + 5 /* this comment will work */ + 7 /* ... */
pragma encoding, "UTF-8"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: DXL won't run after commenting code.. Mathias Mamsch - Mon Apr 25 13:27:26 EDT 2011
I think there might be multiple reasons for this.
a = 4 // some number -
+5 // this comment will work -
+7 // since the newlines will be ignored.
a = 4 /* some number */ + 5 /* this comment will work */ + 7 /* ... */
pragma encoding, "UTF-8"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Would you be able to explain the first part you mentioned a little better? To clear that up, I don't have any instances in which "-" is at the end of a comment. I am currently using a DXL editor and pragma encoding, "UTF-8"
|
Re: DXL won't run after commenting code.. Eric_Hillen - Mon Apr 25 13:39:20 EDT 2011 Would you be able to explain the first part you mentioned a little better? To clear that up, I don't have any instances in which "-" is at the end of a comment. I am currently using a DXL editor and pragma encoding, "UTF-8"
/Sigh Thanks for the help! Eric |
Re: DXL won't run after commenting code.. You may NEED to add a dash in a comment:
int i,
j,
k
// turns into this when commented:
int i, // whatever -
j, // whatever -
k // whatever
/* Lets comment out this code starting here to the bottom
int i = 0
/* Embedded comment block
more
*/
int j = i
**** end comment block */
|